package br.com.sispac.service.producers;

import javax.enterprise.context.SessionScoped;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class PersisteceManagerFactory {

	@Produces
	@SessionScoped
	public EntityManagerFactory createManagerFactory(){
		return Persistence.createEntityManagerFactory("Persistence");
	}
	
}
